import java.io.File;

public class Demo4 {
    public static void main(String[] args){
        File file1 = new File("./testDir");
        //创建一级目录
        System.out.println(file1.mkdir());
        System.out.println(file1.isDirectory());
        //创建多级目录
        File file2 = new File("./testDir/aaa/bbb/ccc");
        System.out.println(file2.mkdirs());
        System.out.println(file2.isDirectory());


    }
}
